package com.dy.nygl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.dy.nygl.pojo.User;

@Repository("userDao")
public interface UserMapper {

	int deleteByPrimaryKey(Integer id);

	int insert(User record);

	int insertSelective(User record);

	User selectByPrimaryKey(@Param("id")Integer id);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);

	User selectUser(@Param("account") String account, @Param("password") String password);

	User selectUserByAccount(@Param("account") String account);

	List<User> selectName(String name);

	List<User> selectAll();
}